<header>
    <!-- 顶部工具条 -->
    <div class="container-fluid topbar">
        <div class="col-xs-2 top-logo-box">
            <a href="index.html"><img src="assets/img/logo-top2.png" alt="" class="top-logo"></a>
        </div>
        <div class="col-xs-2 slide-bt-box">
            <button class="btn " type="button" id="slide-bt" data-toggle="tooltip" data-placement="right" title="提示：点击此处可收起菜单"><i class="icon icon-align-justify"></i></button>
        </div>
        <div class="col-xs-3 pull-right top-user-box">
            <a href="404.html"><img src="assets/img/user10.png" alt=""></a>
            <span class="user-name"><a href="ziliao.html">昆明行列科技有限公司</a></span>
            <span><a href="login.html">退出</a></span>
        </div>
    </div>
</header>
<nav class="menu left-menu" data-ride="menu">
    <ul id="treeMenu" class="tree tree-menu" data-ride="tree">
        <li class="nav-list"><a href="index.html" id="index"><i class="icon icon-home"></i>平台首页</a></li>
        <li class="nav-list"><a href="#"><i class="icon icon-search"></i>价格信息查询</a>
            <ul>
                <li><a href="zhucai.html" id="zhucai">每周主材动态</a></li>
                <li><a href="dinge.html" id="dinge">定额除税价</a></li>
                <li><a href="caigou.html" id="caigou">采购参考价</a></li>
                <li><a href="changshang.html" id="changshang">厂商报价</a></li>
                <li><a href="book.html" id="book">电子期刊</a></li>
            </ul>
        </li>
        <li class="nav-list"><a href="#"><i class="icon icon-yen"></i>厂商询价</a>
            <ul>
                <li><a href="xunjia-form.html" id="xunjia">发布询价</a></li>
                <li><a href="list-ask.html" id="list-ask">询价列表</a></li>
            </ul>
        </li>
        <li class="nav-list"><a href="#"><i class="icon icon-line-chart"></i>企业数据库</a>
            <ul>
                <li><a href="qiye-shoucang.html" id="qiye-shoucang">材料价格收藏</a></li>
                <li><a href="gongying-shoucang.html" id="gongying-shoucang">供应商收藏</a></li>
            </ul>
        </li>
         <li class="nav-list"><a href="#"><i class="icon icon-calculator"></i>智慧材料员</a>
            <ul>
                <li><a href="smart.html" id="smart">智能推荐</a></li>
                <li><a href="tuijian-jilu.html" id="tuijian-jilu">查看记录</a></li>
            </ul>
        </li>
        <li class="nav-list">
            <a href="#"><i class="icon icon-question"></i>在线答疑</a>
            <ul>
                <li><a href="wenda.html" id="wenda">问题列表</a></li>
                <li><a href="my-wenti.html" id="my-wenti">我的问题</a></li>
                <li><a href="huifu.html" id="huifu">我的回复</a></li>
            </ul>
        </li>
        <li class="nav-list"><a href="#"><i class="icon icon-desktop"></i>服务中心</a>
            <ul>
                <li><a href="#">付费在线定制</a>
                    <ul>
                        <li><a href="newdingdan.html" id="newdingdan">新的订制</a></li>
                        <li><a href="dingdan-list.html" id="dingdan-list">我的订单</a></li>
                    </ul>
                </li>
                <li><a href="ziliao.html" id="ziliao">企业基本资料设置</a></li>
                <li><a href="password.html" id="password">密码修改</a></li>
            </ul>
        </li>
        <li class="nav-list"><a href="login.html"><i class="icon icon-signout"></i>退出登录</a></li>
    </ul>
</nav>
<!--导航 End-->
<!-- 导航高亮,做程序如需使用请根据需求修改！ -->
<script>
//请将导航的a标签id改为页面名称前缀！
function dis_guide(guide_arr, def_style, show_style) {
    //统计导航不高亮的个数 这个用于缺省状态或异常状态
    var count = 0;
    //数组长度
    var guide_arr_length = guide_arr.length;
    //获取URL
    var source = window.location;
    source = source.toString();
    //系统开始工作
    for (var i = 0; i < guide_arr_length; i++) {
        //恢复所有样式
        $('#' + guide_arr[i]).attr('class', def_style);
        //揣测URL
        if (source.indexOf(guide_arr[i]) !== -1) {
            $('#' + guide_arr[i]).attr('class', show_style);
        } else {
            count += 1;
        }
        //缺省状态
        if (count >= guide_arr_length) {
            $('#' + guide_arr[0]).attr('class', show_style);
        }
    }
}
//配置要显示的导航GET参数,注意每个导航的ID和这个保持一致
var guide_arr = new Array('index', 'xunjia', 'zhucai', 'dinge', 'newdingdan','dingdan-list','wenda','qiye-shoucang','smart','caigou','changshang','book','ziliao','password','gongying-shoucang','my-wenti','list-ask','tuijian-jilu','huifu');
$(document).ready(function() {
    dis_guide(guide_arr, 'nav-choice', 'active', 'active');
})
//如果有下级导航，展开并高亮下级
$("document").ready(function() {
    $("nav.menu a.active").parents("nav.menu .nav-list").addClass('open in');
    $("nav.menu a.active").parents(".has-list").addClass('open in');
});
</script>